package com.uwo.house.service.serviceImpl;

import com.uwo.house.beans.Permission;
import com.uwo.house.dao.PermissionMapper;
import com.uwo.house.service.IPermissmionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by yanhao on 2017/7/20.
 */
@Service
public class PermissmionService implements IPermissmionService{

    @Autowired
    private PermissionMapper permissionMapper;


    public List<Permission> select() {
        return null;
    }

    public int save(Permission permission) {
        return permissionMapper.save(permission);
    }

    public int modify(Permission permission) {
        return permissionMapper.modify(permission);
    }

    public int remvoe(Long id) {
        return permissionMapper.remvoe(id);
    }
}
